<me:SDBASE x:Class="WPFExcelReport.TSSD0014G"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                     xmlns:me="clr-namespace:WPFExcelReport" 
                     xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:WF="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTS" 
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:SDBASE.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:SDBASE.Resources>
    <WrapPanel> 
        <ComboBox   DropDownOpened="ComboBox_DropDownOpened"
            Name="cKEY"
            IsEditable="True"
            Width="Auto"
            MinWidth="40"  
            DisplayMemberPath="DES"
            SelectedValuePath="KEY" 
            ItemsSource="{Binding Source={StaticResource vwMaster}}"   
            >
        </ComboBox  >
        <Button  Grid.Column="1" Click="ManageCommand" Width="12" Height="20" HorizontalAlignment="Left" 
                 Visibility="{Binding IsMaster,Converter={StaticResource bv}}" >
            <Button.Background>
                <ImageBrush  ImageSource="/ImagePackage;component/Images/Extend.png" />
            </Button.Background>
        </Button>
    </WrapPanel>
</me:SDBASE>
